$(function(){
  $("button#statBtn").bind("click",function(){
	   var data = $("form#statform").serialize();
	   doGet("sparepart/spare-part!stat",data+"&page=0&rows=10");
  });
  
  $("div.pagination ul li a").bind("click",function(){
	  if($(this).hasClass("noclick"))return;
	  loadPage(this.page); 
  });

});

function loadPage(page){
	doGet("sparepart/spare-part!list","page="+page+"&rows=10");
    return false;
}